Factors the expression, which can contain any number of variables or functions.